from django import forms
from .models import *



# class users(forms.ModelForm):
#     class Meta:
#         model = user
#         exclude=["name"]
#
#     def clean(self):
#         tel = self.changed_data.get('tel')
#         sex = self.cleaned_data.get('sex')
#         age = self.cleaned_data.get('age')
#         money = self.cleaned_data.get('money')
#         print(tel)
#         if  not user.objects.filter(tel=tel).exists():
#             raise forms.ValidationError('电话号码已经存在')




